home *** CD-ROM | disk | FTP | other *** search
/ Freelog 115 / FreelogNo115-MaiJuin2013.iso / Internet / Filezilla Server / FileZilla_Server-0_9_41.exe / source / interface / OptionsDlg.h < prev    next >
Encoding:
C/C++ Source or Header  |  2011-11-06  |  3.0 KB  |  103 lines

  1. // FileZilla Server - a Windows ftp server
  2.  
  3. // Copyright (C) 2002-2004 - Tim Kosse <tim.kosse@gmx.de>
  4.  
  5. // This program is free software; you can redistribute it and/or
  6. // modify it under the terms of the GNU General Public License
  7. // as published by the Free Software Foundation; either version 2
  8. // of the License, or (at your option) any later version.
  9.  
  10. // This program is distributed in the hope that it will be useful,
  11. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. // GNU General Public License for more details.
  14.  
  15. // You should have received a copy of the GNU General Public License
  16. // along with this program; if not, write to the Free Software
  17. // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  18.  
  19. #if !defined(AFX_OPTIONSDLG_H__3E60F2D3_99F3_4271_92A3_2CF71AF62731__INCLUDED_)
  20. #define AFX_OPTIONSDLG_H__3E60F2D3_99F3_4271_92A3_2CF71AF62731__INCLUDED_
  21.  
  22. #if _MSC_VER > 1000
  23. #pragma once
  24. #endif // _MSC_VER > 1000
  25. // Options.h : Header-Datei
  26. //
  27. #include "..\OptionTypes.h"
  28.  
  29. /////////////////////////////////////////////////////////////////////////////
  30. // Dialogfeld COptions 
  31.  
  32. class COptions;
  33. class COptionsPage;
  34. class COptionsSpeedLimitPage;
  35. class COptionsDlg : public CSAPrefsDialog
  36. {
  37. // Konstruktion
  38. public:
  39.     CString GetOption(int nOptionID);
  40.     __int64 GetOptionVal(int nOptionID);
  41.     void SetOption(int nOptionID, CString value);
  42.     void SetOption(int nOptionID, __int64 value);
  43.     BOOL Show();
  44.     COptionsDlg(COptions *pInterfaceOptions, bool localConnection);
  45.     virtual ~COptionsDlg();
  46.     BOOL Init(unsigned char *pData, DWORD dwDataLength);
  47.     BOOL GetAsCommand(char **pBuffer, DWORD *nBufferLength);
  48.     COptions *m_pInterfaceOptions;
  49.  
  50.     bool IsLocalConnection() const { return m_localConnection; }
  51.     
  52. protected:
  53.  
  54.     std::list<COptionsPage *> m_PageList;
  55.  
  56.     COptionsSpeedLimitPage *m_pOptionsSpeedLimitPage;
  57.  
  58.     static bool IsNumeric(LPCTSTR str);
  59.     
  60.     struct t_OptionsCache
  61.     {
  62.         int nType;
  63.         CString str;
  64.         _int64 value;
  65.     } m_OptionsCache[OPTIONS_NUM];
  66.  
  67.     // add a page (page, page title, optional parent)
  68.     bool AddPage(CSAPrefsSubDlg &page, UINT nCaptionID, CSAPrefsSubDlg *pDlgParent = NULL);
  69.  
  70.     CSAPrefsSubDlg* GetCurPage();
  71.  
  72.     bool m_localConnection;
  73.     
  74. // Dialogfelddaten
  75.     //{{AFX_DATA(COptions)
  76.     enum { IDD = IDD_SAPREFS };
  77.         // HINWEIS: Der Klassen-Assistent fⁿgt hier Datenelemente ein
  78.     //}}AFX_DATA
  79.  
  80.  
  81. // ▄berschreibungen
  82.     // Vom Klassen-Assistenten generierte virtuelle Funktionsⁿberschreibungen
  83.     //{{AFX_VIRTUAL(COptions)
  84.     protected:
  85.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV-Unterstⁿtzung
  86.     //}}AFX_VIRTUAL
  87.  
  88. // Implementierung
  89.  
  90.     // Generierte Nachrichtenzuordnungsfunktionen
  91.     //{{AFX_MSG(COptions)
  92.     virtual BOOL OnInitDialog();
  93.     virtual void OnOK();
  94.     //}}AFX_MSG
  95.     DECLARE_MESSAGE_MAP()
  96. };
  97.  
  98.  
  99. //{{AFX_INSERT_LOCATION}}
  100. // Microsoft Visual C++ fⁿgt unmittelbar vor der vorhergehenden Zeile zusΣtzliche Deklarationen ein.
  101.  
  102. #endif // AFX_OPTIONSDLG_H__3E60F2D3_99F3_4271_92A3_2CF71AF62731__INCLUDED_
  103.